<script type="text/javascript" src="<?php echo base_url();?>js/jquery.validate.js"></script> 
<script>
    $(document).ready(function()
    {
        /*
        $("#frmBooking").validate(
            {
                rules: {
                    txtFirstname: "required",// simple rule, converted to {required:true}
                    txtLastname: "required",
                    txtEmail: {// compound rule
                        required: true,
                        email: true
                    }

                },
                messages: {
                    //txtFirstname: "Please enter a Fistname."
                }
            });
            */
        $('#submit').click(function() {
            $('#frmBooking').submit();
            //alert("submit");
            
        });

    
      
    });
</script>
<div class="tab_titile">
    <div class="tab_titile1">ĐẶT TOUR</div><div class="tab_titile2"></div></div>
<div class="content_txt">
    <div class="box_contact" style="width:710px;">

        <form id="frmBooking" method="post" action="<?php echo site_url(); ?>tour/booking/{id}">
            {error_message}
            <p>
               	<label> Tên công ty:</label>
               	<input name="txtCompanyName" type="text" value="{company_name}" /> <font style="color:#F00">*</font>
            </p>
            <p>
               	<label>Tên tour:</label><span style="font-weight:bold;font-size:13px;width:680px;padding-bottom:20px;">{vi_name}</span>
            </p>

            <p>
               	<label> Họ: </label>
               	<input name="txtLastname" value="{lastname}" type="text" style="width:80px;" /> <font style="color:#F00">*</font>
                Tên:
               	<input name="txtFirstname" value="{firstname}" type="text"  style="width:100px;" /> <font style="color:#F00">*</font>

                Danh xưng: {ddlTitle}

            </p>
            <p>
               	<label> Email:</label>
               	<input name="txtEmail" value="{email}" type="text" /> <font style="color:#F00">*</font>
            </p>
            <p>
               	<label> Địa Chỉ:</label>
               	<input name="txtAddress" value="{address}" type="text" /> <font style="color:#F00">*</font>
            </p>
            <p>
               	<label> Số Điện Thoại:</label>
               	<input name="txtPhone" value="{phone}" type="text" /> <font style="color:#F00">*</font>
            </p>
            <p>
               	<label> Fax:</label>
               	<input name="txtFax" value="{fax}" type="text" /> <font style="color:#F00">*</font>
            </p>
            <p>
                <label>Ngày khởi hành:</label>
                <input name="txtDeparture" value="{departure_date}" type="text" style="width:100px;"/>
               	<img src="<?php echo base_url(); ?>images/icon_Date.png" width="14" height="16" />
            </p>
            <p>
                <label>Người lớn: </label>

                <input name="txtAdultsNumber" value="{adult}" type="text" style="width:100px;"/>
                (&gt; 11 tuổi )
            </p>
            <p>
                <label>Trẻ em dưới 6 tuổi: </label>
                <input name="txtChildren6" value="{children6}" type="text" style="width:100px;"/>

            </p>
            <p>
                <label>Trẻ em dưới 11 tuổi: </label>
                <input name="txtChildren11" value="{children11}" type="text" style="width:100px;"/>
            </p>
            <p>
                <label>Số phòng đơn: </label>
                <input name="txtSingleRoom" value="{single_room}" type="text" style="width:100px;"/>
            </p>
            <p>
                <label>Số phòng đôi: </label>
                <input name="txtDoubleRoom" value="{double_room}" type="text" style="width:100px;"/>
            </p>
            <p>
                <label>Số phòng ba: </label>
                <input name="txtTripleRoom" value="{triple_room}" type="text" style="width:100px;"/>
            </p>
            <p>
                <label>Khách sạn: </label>
                {ddlAccommodation}
            </p>
            <p>
                <label>Hình thức vận chuyển </label>
                {ddlTransport}

            </p>
            <p>
                <label>Yêu cầu khác: </label><textarea name="txtRequirement" cols="50" rows="7">{requirement}</textarea>
            </p>

            <input type="hidden" name="txtUID" value="{uid}">
        </form>
    </div>
    <div style="width:700px;float:left;padding:20px 5px" align="center"><img id="submit" src="<?php echo base_url(); ?>images/dattour.png" width="85" height="27" />&nbsp;&nbsp;<img id="clear" src="<?php echo base_url(); ?>images/icon_huy.png" width="66" height="27" /></div>
</div>